<%@ Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderTag" Runat="Server">
  <title>Welcome to Our Store</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<h1>Welcome</h1>
<p>
Welcome to our store... here you would talk about your products or put a fancy promotional picture...
</p>
<b>Products:</b>
<table>
    <asp:Repeater ID="rptProducts" runat="server">
    <ItemTemplate>
    <tr>
      <td valign="top"><img width="120px" src="images/<%# DataBinder.Eval(Container.DataItem, "Picture") %>"  alt="<%# DataBinder.Eval(Container.DataItem, "Name") %>" /></td>
      <td valign="top"><b><%# DataBinder.Eval(Container.DataItem, "Name") %></b>
             <p><%# DataBinder.Eval(Container.DataItem, "Description") %></p>
             Price: <%# DataBinder.Eval(Container.DataItem, "Price") %><br />
             <a href="AddToCart.aspx?ProductId=<%# DataBinder.Eval(Container.DataItem, "Product_Id") %>">[Add to Cart]</a>
      
      </td>
    </tr>
    </ItemTemplate>
    <SeparatorTemplate>
     <tr><td colspan="2"><hr /></td></tr>
    </SeparatorTemplate>
    </asp:Repeater>
</table>
</asp:Content>

